/*   1:    */ package com.jetbrains.licenseService.responses;
/*   2:    */ 
/*   3:    */

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Date;

/*   4:    */
/*   5:    */
/*   6:    */ 
/*   7:    */ public class License
/*   8:    */ {
/*   9:    */   @NotNull
/*  10:    */   private String a;
/*  11:    */   @NotNull
/*  12: 15 */   private String b = "";
/*  13:    */   @NotNull
/*  14: 18 */   private String c = "";
/*  15:    */   @NotNull
/*  16:    */   private String d;
/*  17:    */   private int e;
/*  18:    */   @Nullable
/*  19:    */   private Date f;
/*  20:    */   @Nullable
/*  21:    */   private Date g;
/*  22:    */   private boolean h;
/*  23:    */   
/*  24:    */   public License() {}
/*  25:    */   
/*  26:    */   public License(@NotNull String paramString1, @NotNull String paramString2, int paramInt, String paramString3, String paramString4, Date paramDate1, Date paramDate2, boolean paramBoolean)
/*  27:    */   {
/*  28: 38 */     this.a = paramString1;
/*  29: 39 */     this.d = paramString2;
/*  30: 40 */     this.e = paramInt;
/*  31: 41 */     this.b = (paramString3 != null ? paramString3 : "");
/*  32: 42 */     this.c = (paramString4 != null ? paramString4 : "");
/*  33: 43 */     this.f = paramDate1;
/*  34: 44 */     this.g = paramDate2;
/*  35: 45 */     this.h = paramBoolean;
/*  36:    */   }
/*  37:    */   
/*  38:    */   @NotNull
/*  39:    */   public String getAssetId()
/*  40:    */   {
/*  41: 50 */     String tmp4_1 = this.a;
/*  42: 50 */     if (tmp4_1 == null) {
/*  43: 50 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "com/jetbrains/licenseService/responses/License", "getAssetId" }));
/*  44:    */     }
/*  45: 50 */     return tmp4_1;
/*  46:    */   }
/*  47:    */   
/*  48:    */   public void setAssetId(@NotNull String paramString)
/*  49:    */   {
/*  50: 54 */     if (paramString == null) {
/*  51: 54 */       throw new IllegalArgumentException(String.format("Argument for @NotNull parameter '%s' of %s.%s must not be null", new Object[] { "assetId", "com/jetbrains/licenseService/responses/License", "setAssetId" }));
/*  52:    */     }
/*  53: 54 */     this.a = paramString;
/*  54:    */   }
/*  55:    */   
/*  56:    */   @NotNull
/*  57:    */   public String getProductCode()
/*  58:    */   {
/*  59: 59 */     String tmp4_1 = this.d;
/*  60: 59 */     if (tmp4_1 == null) {
/*  61: 59 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "com/jetbrains/licenseService/responses/License", "getProductCode" }));
/*  62:    */     }
/*  63: 59 */     return tmp4_1;
/*  64:    */   }
/*  65:    */   
/*  66:    */   public void setProductCode(@NotNull String paramString)
/*  67:    */   {
/*  68: 63 */     if (paramString == null) {
/*  69: 63 */       throw new IllegalArgumentException(String.format("Argument for @NotNull parameter '%s' of %s.%s must not be null", new Object[] { "productCode", "com/jetbrains/licenseService/responses/License", "setProductCode" }));
/*  70:    */     }
/*  71: 63 */     this.d = paramString;
/*  72:    */   }
/*  73:    */   
/*  74:    */   public int getProductVersion()
/*  75:    */   {
/*  76: 67 */     return this.e;
/*  77:    */   }
/*  78:    */   
/*  79:    */   public void setProductVersion(int paramInt)
/*  80:    */   {
/*  81: 71 */     this.e = paramInt;
/*  82:    */   }
/*  83:    */   
/*  84:    */   @NotNull
/*  85:    */   public String getLicensedTo()
/*  86:    */   {
/*  87: 76 */     String tmp4_1 = this.b;
/*  88: 76 */     if (tmp4_1 == null) {
/*  89: 76 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "com/jetbrains/licenseService/responses/License", "getLicensedTo" }));
/*  90:    */     }
/*  91: 76 */     return tmp4_1;
/*  92:    */   }
/*  93:    */   
/*  94:    */   public void setLicensedTo(@NotNull String paramString)
/*  95:    */   {
/*  96: 80 */     if (paramString == null) {
/*  97: 80 */       throw new IllegalArgumentException(String.format("Argument for @NotNull parameter '%s' of %s.%s must not be null", new Object[] { "licensedTo", "com/jetbrains/licenseService/responses/License", "setLicensedTo" }));
/*  98:    */     }
/*  99: 80 */     this.b = paramString;
/* 100:    */   }
/* 101:    */   
/* 102:    */   @NotNull
/* 103:    */   public String getLicenseRestrictions()
/* 104:    */   {
/* 105: 85 */     String tmp4_1 = this.c;
/* 106: 85 */     if (tmp4_1 == null) {
/* 107: 85 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "com/jetbrains/licenseService/responses/License", "getLicenseRestrictions" }));
/* 108:    */     }
/* 109: 85 */     return tmp4_1;
/* 110:    */   }
/* 111:    */   
/* 112:    */   public void setLicenseRestrictions(@NotNull String paramString)
/* 113:    */   {
/* 114: 89 */     if (paramString == null) {
/* 115: 89 */       throw new IllegalArgumentException(String.format("Argument for @NotNull parameter '%s' of %s.%s must not be null", new Object[] { "licenseRestrictions", "com/jetbrains/licenseService/responses/License", "setLicenseRestrictions" }));
/* 116:    */     }
/* 117: 89 */     this.c = paramString;
/* 118:    */   }
/* 119:    */   
/* 120:    */   @Nullable
/* 121:    */   public Date getUpgradeDueDate()
/* 122:    */   {
/* 123: 94 */     return this.f;
/* 124:    */   }
/* 125:    */   
/* 126:    */   public void setUpgradeDueDate(@Nullable Date paramDate)
/* 127:    */   {
/* 128: 98 */     this.f = paramDate;
/* 129:    */   }
/* 130:    */   
/* 131:    */   @Nullable
/* 132:    */   public Date getExpirationDate()
/* 133:    */   {
/* 134:103 */     return this.g;
/* 135:    */   }
/* 136:    */   
/* 137:    */   public void setExpirationDate(@Nullable Date paramDate)
/* 138:    */   {
/* 139:107 */     this.g = paramDate;
/* 140:    */   }
/* 141:    */   
/* 142:    */   public boolean isDetectDuplicates()
/* 143:    */   {
/* 144:111 */     return this.h;
/* 145:    */   }
/* 146:    */   
/* 147:    */   public void setDetectDuplicates(boolean paramBoolean)
/* 148:    */   {
/* 149:115 */     this.h = paramBoolean;
/* 150:    */   }
/* 151:    */   
/* 152:    */   public String toString()
/* 153:    */   {
/* 154:119 */     return "License{assetId='" + this.a + '\'' + ", licensedTo='" + this.b + '\'' + ", licenseRestrictions='" + this.c + '\'' + ", productCode='" + this.d + '\'' + ", productVersion=" + this.e + ", upgradeDueDate=" + this.f + ", expirationDate=" + this.g + ", detectDuplicates='" + this.h + '}';
/* 155:    */   }
/* 156:    */ }
